home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The PC-SIG Library 9
/
The PC-SIG Library on CD ROM - Ninth Edition.iso
/
501_600
/
DISK0562
/
DISK0562.ZIP
/
SOFT4HAM.ARC
/
LOGSEND.2
< prev
next >
Wrap
Text File
|
1985-09-28
|
3KB
|
70 lines
10 REM LOGSEND 841102
20 ERRSET 630,E1,E2
40 REM (C) COPYRIGHT JOE KASSER G3ZCZ 1984
50 GOSUB 5010
60 GOSUB 5050 \ REM GET DATA FILE NAME
70 GOSUB 5040 \ REM GET OUTPUT DEVICE
320 OPEN #1,L1$
330 FOR I=1 TO N\REM LOG SHOULD HAVE LESS THAN 800 LINES
340 READ #1,&D1,&D2,&D3,T,F,C$,S,R,M$,P,&Q1,&Q2,X$
350 IF I<>400 THEN 470
355 PRINT#ACHR$(26)\REM EOF
360 PRINT "RESET OSBORNE AND TYPE ANY CARACTER"
370 INPUT J$
470 GOSUB 5020 \REM PRINT LINE OF DATA
480 NEXT
490 CLOSE#1
605 GOTO 5045
610 PRINT"LOG BOOK IS EMPTY "
620 GOTO 605
630 ERRSET 630,E1,E2
640 IFE2=15THEN605
670 IF E1<>5560 THEN680 ELSE IF I>4 THEN 5570 ELSE 5565
680 IF E1<>5650 THEN 690 ELSE IF I>4 THEN 5670 ELSE 5660
690 IFE2<>8THEN 700 ELSE PRINT"HARD DISC ERROR"\GOTO605
700 IFE2<>7THEN 710 ELSE PRINT"FILE ERROR"\GOTO605
710 PRINT"ERROR ",E2," AT LINE ",E1\GOTO605
5000 REM SUBROUTINE PACKAGE VER 790908
5010 GOTO 5060 \ REM SET UP VARIABLES & CONSTANTS
5020 GOTO 5110 \ REM PRINT LINE OF DATA
5040 GOTO 5230 \ DETERMINE OUTPUT DEVICE
5045 PRINT#A CHR$(26)
5046 STOP
5050 GOTO 5260 \ REM DETERMINE NAME OF LOG FILE & GET N
5060 DIMX$(64),D$(16) \ P1=66\P2=1
5065 DIMM1$(36)\M1$="JanFebMarAprMayJunJulAugSepOctNovDec"
5070 T0 = 9 \ T1=T0+ 4 \ T2= T1+ 3 \ T3 = T2 +3
5075 T4=T3+10\T5=T4+10\T6=T5+4\T7=T6+5\T8=T7+4\T9=T8+6
5080 DEF FNT$(V)
5085 V1=INT(V/1000)\V2=INT((V-V1*1000)/100)
5090 V3=INT((V-V1*1000-V2*100)/10)\V4=INT(V-V1*1000-V2*100-V3*10)
5095 RETURN CHR$(48+V1)+CHR$(48+V2)+CHR$(48+V3)+CHR$(48+V4)
5096 FNEND
5100 RETURN
5110 D1$=FNT$(D1) \ D2$=FNT$(D2)\D3$=FNT$(D3)
5111 D3$=D3$(3,4)\D2$="/"+D2$(3,4)\D1$="/"+D1$(3,4)
5113 D$=D3$+D2$+D1$
5114 PRINT#A, D$,",",
5115 T$=FNT$(T)
5116 S$=FNT$(S)\R$=FNT$(R)\S$=S$(3,4)\R$=R$(3,4)
5120 PRINT #A,T$,",",F,",",C$,",",S$,",",
5130 PRINT #A,R$,",",M$,",",P,",",
5140 IF Q1=1 THEN PRINT#A,"S", ELSE PRINT#A,"-",\PRINT#A,",",
5150 IF Q2=1 THEN PRINT#A,"R", ELSE PRINT#A,"-",
5155 PRINT #A,",",X$
5170 RETURN
5230 INPUT"Which output device (0-7) ? ",A
5240 IF A>7 OR A<0 THEN 5230
5250 RETURN
5260 INPUT"What is the name of the log file ? ",L$\IFL$=""THEN5260
5270 INPUT"Which drive is it on ? ",D$\IFD$=""THEN 5270
5275 IF LEN(D$)>1THEN5270
5310 L1$=L$+","+D$ \ REM LOG FILE
5320 L2$="*"+L$+","+D$
5325 IF FILE(L1$)=3 THEN 5327 ELSEPRINT"LOG FILE IS NOT ON DISC"\GOTO5045
5327 IF FILE(L2$)=3 THEN 5330 ELSEPRINT"LOG POINTER FILE ERROR"\GOTO 5045
5330 OPEN#2,L2$
5340 READ#2,N
5350 CLOSE#2
5360 RETURN